<template>
	<view class="detail">
		<view class="box" @click="realauth">
			<view>实名认证</view>
			<image class="right" src="/static/image/mv_tuichus.png"></image>
		</view>
		<view class="box" @click="agreement('yinsi')">
			<view>隐私协议</view>
			<image class="right" src="/static/image/mv_tuichus.png"></image>
		</view>
		<view class="box" @click="agreement('yonghu')">
			<view>用户协议</view>
			<image class="right" src="/static/image/mv_tuichus.png"></image>
		</view>
		<view class="box" @click="aboutus()">
			<view>关于我们</view>
			<image class="right" src="/static/image/mv_tuichus.png"></image>
		</view>
		<view class="buttons" @click="tuichu">退出</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				promoterFlag:0
			}
		},
		onLoad() {

		},
		onShow() {
		},
		methods: {
			aboutus(){
				uni.navigateTo({
					url:'/pages_user/user/set/AboutUs'
				})
			},
			realauth(){
				uni.navigateTo({
					url:'/pages_user/user/set/RealAuthentication'
				})
			},
			promoter(){
				uni.navigateTo({
					url:'/pages_user/user/set/promoter'
				})
			},
			tuichu(){
				uni.setStorageSync('openId','')
				uni.navigateTo({
					url:'/pages/login/login'
				})
			},
			agreement(type){
				uni.navigateTo({
					url:'/pages_user/user/agreement/agreement?type='+type
				})
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFF;
	}
	.detail {
		.buttons {
			margin:200rpx auto 0;
			width: 710rpx;
			height: 88rpx;
			background: linear-gradient(180deg, #2089FF 0%, #11ACEF 100%);
			border-radius: 44rpx;
			font-size: 28rpx;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
		}
		.box{
			padding:36rpx 28rpx;
			display: flex;
			justify-content: space-between;
			border-bottom:2rpx solid #F3F3F3;
		}
		.right{
			width:16rpx;
			height:26rpx;
			margin-top:8rpx;
		}
	}
</style>
